<!DOCTYPE html>
<html lang="en">

  <head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script>
      /* 
    对象中的属性遍历：for in
    
     */
      var Student = {
        name: "jason",
        age: 20,
        like: function () {
          console.log("钓鱼");
        }
      }
      for (var item in Student) {
        //console.log(item);
        //console.log(Student[item]);
        console.log("key:" + item + ";value:" + Student[item]);
      }
    </script>
  </head>

  <body>

  </body>

</html>